package com.wp.design.structural.proxy.staticProxy;

import com.wp.design.structural.proxy.IOrderService;
import com.wp.design.structural.proxy.Order;
import com.wp.design.structural.proxy.OrderServiceImpl;

public class StaticProxy {
	private IOrderService orderService = new OrderServiceImpl();
	public void add(Order order){
		before();
		orderService.insertOrder(order);
		after();
	}
	private void before(){
		System.out.println("静态代理前置方法");
	}
	private void after(){
		System.out.println("静态代理后置方法");
	}
}
